﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace J.M.Inventory.Domain.Entity
{
    /// <summary>
    /// 入库管理表
    /// </summary>
    [SugarTable("stock_management")]
    public class stock_management
    {
        /// <summary>
        /// 入库管理ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnDescription = "入库单号id")]
        public string entermange_id { get; set; }
        /// <summary>
        /// 生产单号
        /// </summary>
        [SugarColumn(ColumnDescription = "生产单号", Length = 50)]
        public string? production_order { get; set; }
        /// <summary>
        /// 入库类型
        /// </summary>
        [SugarColumn(ColumnDescription = "入库类型", Length = 50)]
        public string? enter_warehouseid { get; set; }

        /// <summary>
        /// 入库主题
        /// </summary>
        [SugarColumn(ColumnDescription = "入库主题", Length = 500)]
        public string? entermange_Incomingsubject { get; set; }

        /// <summary>
        /// 入库日期
        /// </summary>
        [SugarColumn(ColumnDescription = "入库日期")]
        public DateTime entermange_datatime { get; set; }

 



        /// <summary>
        /// 联系人
        /// </summary>
        [SugarColumn(ColumnDescription = "联系人", Length = 20)]
        public string? entermange_linkman { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        [SugarColumn(ColumnDescription = "联系电话", Length = 11)]
        public string? entermange_phone { get; set; }

     
        /// <summary>
        /// 入库人员
        /// </summary>
        [SugarColumn(ColumnDescription = "入库人员", Length = 20)]
        public string? entermange_warehousingpersonnel { get; set; }

        /// <summary>
        /// 入库部门
        /// </summary>
        [SugarColumn(ColumnDescription = "入库部门", Length = 50)]
        public string? entermange_enterdepartmentid { get; set; }

        /// <summary>
        /// 入库仓库
        /// </summary>
        [SugarColumn(ColumnDescription = "入库仓库", Length = 50)]
        public string? entermange_enterwarehouseid { get; set; }

        /// <summary>
        /// 关联项目
        /// </summary>
        [SugarColumn(ColumnDescription = "关联项目",Length=50)]
        public string? entermange_project { get; set; }

        /// <summary>
        ///  入库数量
        /// </summary>
        [SugarColumn(ColumnDescription = "入库数量")]
        public int entermange_number{ get; set; }

        /// <summary>
        /// 附件
        /// </summary>
        [SugarColumn(ColumnDescription = "附件", Length = 10000)]
        public string? entermange_upload { get; set; }

        /// <summary>
        /// 审核状态
        /// </summary>
        [SugarColumn(ColumnDescription = "审核状态")]
        public bool entermange_auditstate { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnDescription = "备注", Length = 500)]
        public string? entermange_remark { get; set; }
    }
}
